Skip to content

Fix successive failing calls to zeInitDrivers when no drivers found#435

Open
pratikbariintel wants to merge 1 commit intooneapi-src:masterfrom
pratikbariintel:fix_successive_zeInitDrivers_error
Open

Fix successive failing calls to zeInitDrivers when no drivers found#435
pratikbariintel wants to merge 1 commit intooneapi-src:masterfrom
pratikbariintel:fix_successive_zeInitDrivers_error

Conversation

@pratikbariintel
Copy link
Copy Markdown
Contributor

Related-To: NEO-18195

Signed-off-by: Pratik Bari pratik.bari@intel.com

Related-To: NEO-18195

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
Copy link
Copy Markdown
Contributor

@rwmcguir rwmcguir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing approval as this edit needs to go through a MAKO file change, else it will be overwritten on next auto-gen cycle.

return ZE_RESULT_ERROR_UNINITIALIZED;
}

if (ze_lib::context->zeDdiTable.load() == nullptr) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modify https://github.com/oneapi-src/level-zero/blob/master/scripts/templates/libapi.cpp.mako#L233 to update this line to match both driverget and initdrivers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants